#include <iostream>
#include <string>
#include <cstring>
#include <vector>
#include <queue>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <fstream>
#include <sstream>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <unordered_map>
#include <openssl/md5.h>
#include <cstdio>
#include <sys/stat.h>

using namespace std;

size_t getFileSize(string path)
{
    struct stat st{};
    int ret = stat(path.c_str(), &st);
    if (ret < 0)
    {
        perror("stat");
    }

    return st.st_size;
}

int main(int argc, char const *argv[])
{
    // get_file_md5("/home/lxp/linux/project/baidu/include/test.cc", ret);
    cout << getFileSize("/home/lxp/web/jdk-8u202-linux-") << endl;
    return 0;
}
